﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Duck:Animal,Iswim
    {

        public override void eat()
        {
            Console.WriteLine("Duck eating");
        }

        public void swim()
        {
            Console.WriteLine("swimming");
        }
    }
}
